<%@ page contentType="text/html; charset=UTF-8" import="com.stx.boke.entity.User" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>

	<link href="<%=request.getContextPath()%>/css/首页.css" type="text/css" rel="stylesheet" /> 
</head>

<body>
<div id="container">
  <div id="header"><marquee behavior="alternate"  onmouseout="this.start()" onmouseover="this.stop()"><img src="<%=request.getContextPath()%>/img/导航.png"/></marquee>
      <%-- 从session(会话)对象中获得当前已登录用户对象 --%>
					<% User loginuser = (User) session.getAttribute("USER"); %>
				
						<%-- 从已登录用户对象获得该用户的用户名 --%>
						<%if(loginuser!=null){ %> 
							欢迎您, <%=loginuser.getUname()%>
							<a class="btn" href="<%=request.getContextPath()%>/jsp/logout.jsp">退出</a>
				  <div id="menu">			 
  
  <ul>
  <li><a href="#">首页</a></li>
  <li><a href="#">博文管理</a>
    <ul>
      <li><a href="<%=request.getContextPath()%>/jsp/report.jsp">发表博文</a></li>
	  <li><a href="#">博文详细页</a></li>
	  <li><a href="#">博文列表</a></li>
      <li><a href="#">博文预览</a></li>
      <li><a href="#">博文评论</a></li>
    </ul>
  </li>
    <li><a href="#">个人资料</a>
    <ul>
	  <li><a href="#">个人信息修改</a></li>
	  <li><a href="#">修改密码</a></li>
    </ul>
  </li>
  <li><a href="#">收藏</a></li>
</ul>
  
  </div>
						<%} else{ %>
							未登录 
							<a class="btn" href="<%=request.getContextPath()%>/jsp/login.jsp">登录</a>
							<a class="" href="<%=request.getContextPath()%>/jsp/register.jsp" target="_self" name="sy_login">注册</a>
							  <div id="menu">
  

  <ul>
  <li><a href="#">首页</a></li> <li><a href="#">收藏</a></li>
</ul>
  
  </div>
  		<% } %>
			  <div id="mainContent">
  
  <div id="sidebar">
    <div>
    <ul>
    <li><h3>Blogger</h3></li>
    <li>
    <a href="http://e.weibo.com/u/2819609662?ref=http%3A%2F%2Fweibo.com%2F1939612603%2Ffollow%3Fleftnav%3D1%26wvr%3D3.6">
    <img src="<%=request.getContextPath()%>/img/stxlogo.png"  alt="双体系的LOGO" width="160" height="300" align="left"/></a></li>
    <br /><br />
    <br /><br />
    <br /><br />
    <br /><br />
    <li></li>  
    </ul>
    </div>
    
    <div>
    <ul>
    <li><h3></h3>
    <ul>
    <li>xxx</li>
    <li>xx</li>
    <li>x</li>
    </ul>
    </li>
    </ul>
    </div>
    
    </div>
    
    <div id="content">
     <div id="post">
     <h2 class="title">xxx</h2>
     <p class="meta">
     作者：<a href="">xxx</a>
     发布于：xxxx-xx-xx   分类：
     <a href="">评论（x）</a>
     </p>
     <div class="entry">xxxxxxxxx     xxxxxxxxxxxxxx</div>
     <p class="readmore"><a href="">阅读全文</a></p>
	  </div>
  	           <hr color="#FF0000" />
    
     <div id="post">
     <h2 class="title">xxx</h2>
     <p class="meta">
     作者：<a href="">xxx</a>
     发布于：xxxx-xx-xx   分类：
     <a href="">评论（x）</a>
     </p>
     <div class="entry"></div>
     <p class="readmore"><a href="">阅读全文</a></p> 
	 </div>
      <hr color="#FF0000" />
    
    <div id="post">
     <h2 class="title">xxx</h2>
     <p class="meta">
     作者：<a href="">xxx</a>
     发布于：xxxx-xx-xx   分类：
     <a href="">评论（x）</a>
     </p>
     <div class="entry"></div>
     <p class="readmore"><a href="">阅读全文</a></p> 
	 </div>
      <hr color="#FF0000" />
    
          <div id="post">
     <h2 class="title">xxx</h2>
    <p class="meta">
     作者：<a href="">xxx</a>
     发布于：xxxx-xx-xx   分类：
     <a href="">评论（x）</a>
     </p>
     <div class="entry"></div>
     <p class="readmore"><a href="">阅读全文</a></p>
	 </div>

     
    </div>
    
  </div>
  
  <div id="footer"> <br />Copyright 2012 by 铿锵五人组 <br /></div>
</div>
</body>
</html>

